<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>求职列表 - 社交招聘平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    body {
      background-color: #f5f5f5;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      padding-bottom: 70px;
    }
    
    /* 顶部导航 */
    .top-nav {
      background-color: white;
      padding: 12px 15px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      text-align: center;
      margin: 0;
    }
    
    /* 筛选与搜索区 */
    .filter-bar {
      background-color: white;
      padding: 10px 15px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #eee;
    }
    
    .filter-btn {
      padding: 6px 12px;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .search-container {
      flex: 1;
      position: relative;
      margin-left: 10px;
    }
    
    .search-input {
      width: 100%;
      padding: 8px 15px 8px 35px;
      border-radius: 20px;
      border: 1px solid #eee;
      background-color: #f9f9f9;
      font-size: 14px;
    }
    
    .search-input:focus {
      outline: none;
      border-color: #0d6efd;
      background-color: white;
    }
    
    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #999;
      font-size: 14px;
    }
    
    /* 列表切换器 */
    .view-switcher {
      background-color: white;
      padding: 8px 15px;
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid #eee;
    }
    
    .view-btn {
      padding: 5px 10px;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .view-btn.active {
      color: #0d6efd;
      background-color: #f0f7ff;
    }
    
    /* 求职列表 */
    .job-seekers-list {
      padding: 10px;
    }
    
    .job-seeker-item {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 10px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    /* 基础信息区 */
    .seeker-header {
      padding: 15px;
      display: flex;
      gap: 12px;
      border-bottom: 1px solid #eee;
    }
    
    .seeker-avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      border: 2px solid #f0f7ff;
    }
    
    .seeker-info {
      flex: 1;
    }
    
    .seeker-name {
      font-size: 17px;
      font-weight: 600;
      color: #333;
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .verified-badge {
      color: #0d6efd;
      font-size: 14px;
    }
    
    .seeker-title {
      font-size: 14px;
      color: #666;
      margin-bottom: 3px;
    }
    
    .seeker-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      font-size: 12px;
      color: #888;
    }
    
    .meta-tag {
      background-color: #f5f5f5;
      padding: 1px 6px;
      border-radius: 4px;
    }
    
    /* 内容区 */
    .seeker-content {
      padding: 15px;
    }
    
    .seeker-description {
      font-size: 14px;
      color: #555;
      line-height: 1.5;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    /* 图片展示区 */
    .images-container {
      margin-bottom: 12px;
    }
    
    .no-images {
      display: none;
    }
    
    .single-image {
      width: 100%;
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 8px;
    }
    
    .single-image img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
    
    .multiple-images {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      margin-bottom: 8px;
    }
    
    .multi-image-item {
      aspect-ratio: 1;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
    }
    
    .multi-image-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .image-count {
      position: absolute;
      bottom: 5px;
      right: 5px;
      background-color: rgba(0,0,0,0.6);
      color: white;
      font-size: 12px;
      padding: 2px 5px;
      border-radius: 4px;
    }
    
    /* 技能标签 */
    .skills-container {
      margin-bottom: 12px;
    }
    
    .skills-title {
      font-size: 13px;
      color: #666;
      margin-bottom: 5px;
      font-weight: 500;
    }
    
    .skills-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    
    .skill-tag {
      padding: 3px 8px;
      background-color: #f0f7ff;
      color: #0d6efd;
      border-radius: 4px;
      font-size: 12px;
    }
    
    /* 求职意向 */
    .job-intention {
      background-color: #f9f9f9;
      padding: 10px;
      border-radius: 8px;
      margin-bottom: 12px;
    }
    
    .intention-title {
      font-size: 13px;
      color: #666;
      margin-bottom: 5px;
      font-weight: 500;
    }
    
    .intention-content {
      font-size: 13px;
      color: #555;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    
    .intention-item {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .intention-item i {
      color: #999;
      font-size: 12px;
    }
    
    /* 操作区 */
    .seeker-actions {
      display: flex;
      justify-content: space-between;
      padding: 10px 15px;
      border-top: 1px solid #eee;
    }
    
    .action-button {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 14px;
      padding: 5px 12px;
    }
    
    /* 列表视图样式 */
    .list-view .job-seeker-item {
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 10px 15px;
    }
    
    .list-view .seeker-header {
      border-bottom: none;
      padding: 0;
      flex: 1;
    }
    
    .list-view .seeker-content,
    .list-view .seeker-actions {
      display: none;
    }
    
    .list-view .seeker-avatar {
      width: 50px;
      height: 50px;
    }
    
    .list-view .seeker-name {
      font-size: 16px;
    }
    
    .list-view .list-actions {
      display: block;
    }
    
    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: white;
      border-top: 1px solid #eee;
      display: flex;
      padding: 8px 0;
      z-index: 100;
    }
    
    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #999;
      font-size: 10px;
    }
    
    .nav-item.active {
      color: #0d6efd;
    }
    
    .nav-icon {
      font-size: 20px;
      margin-bottom: 3px;
    }
    
    /* 隐藏的列表视图操作按钮 */
    .list-actions {
      display: none;
    }
  </style>
</head>
<body>
  <!-- 顶部导航 -->
  <div class="top-nav d-flex justify-content-between align-items-center">
    <button class="btn btn-link p-0 text-dark">
      <i class="fa fa-bars"></i>
    </button>
    <h1 class="nav-title">求职列表</h1>
    <button class="btn btn-link p-0 text-dark">
      <i class="fa fa-filter"></i>
    </button>
  </div>
  
  <!-- 筛选与搜索区 -->
  <div class="filter-bar">
    <button class="btn btn-outline-secondary filter-btn">
      <i class="fa fa-sort"></i> 排序
    </button>
    <div class="search-container">
      <i class="fa fa-search search-icon"></i>
      <input type="text" class="search-input" placeholder="搜索求职者、技能或职位...">
    </div>
  </div>
  
  <!-- 列表切换器 -->
  <div class="view-switcher">
    <button class="btn btn-light view-btn active" id="card-view-btn">
      <i class="fa fa-th-large"></i> 卡片
    </button>
    <button class="btn btn-light view-btn" id="list-view-btn">
      <i class="fa fa-list"></i> 列表
    </button>
  </div>
  
  <!-- 求职列表 -->
  <div class="job-seekers-list" id="job-seekers-container">
    <!-- 1. 无图片求职者 -->
    <div class="job-seeker-item">
      <div class="seeker-header">
        <img src="https://picsum.photos/200/200?random=1" class="seeker-avatar" alt="求职者头像">
        <div class="seeker-info">
          <div class="seeker-name">
            张明 <i class="fa fa-check-circle verified-badge"></i>
          </div>
          <div class="seeker-title">高级前端开发工程师</div>
          <div class="seeker-meta">
            <span class="meta-tag">30岁</span>
            <span class="meta-tag">本科</span>
            <span class="meta-tag">5年经验</span>
            <span class="meta-tag">北京市</span>
          </div>
        </div>
      </div>
      
      <div class="seeker-content">
        <div class="seeker-description">
          5年前端开发经验，精通Vue、React等主流框架，参与过多个大型项目的架构设计和开发工作。熟悉前端工程化和性能优化，有团队管理经验。目前正在寻找有挑战性的技术岗位，期待加入有活力的团队。
        </div>
        
        <div class="images-container no-images">
          <!-- 无图片 -->
        </div>
        
        <div class="skills-container">
          <div class="skills-title">技能特长</div>
          <div class="skills-tags">
            <span class="skill-tag">Vue.js</span>
            <span class="skill-tag">React</span>
            <span class="skill-tag">JavaScript</span>
            <span class="skill-tag">Webpack</span>
            <span class="skill-tag">性能优化</span>
            <span class="skill-tag">团队管理</span>
          </div>
        </div>
        
        <div class="job-intention">
          <div class="intention-title">求职意向</div>
          <div class="intention-content">
            <div class="intention-item"><i class="fa fa-briefcase"></i> 前端开发工程师</div>
            <div class="intention-item"><i class="fa fa-money"></i> 18k-25k</div>
            <div class="intention-item"><i class="fa fa-map-marker"></i> 北京市</div>
            <div class="intention-item"><i class="fa fa-clock-o"></i> 随时到岗</div>
          </div>
        </div>
      </div>
      
      <div class="seeker-actions">
        <button class="btn btn-outline-primary action-button">
          <i class="fa fa-comment-o"></i> 沟通
        </button>
        <button class="btn btn-outline-secondary action-button">
          <i class="fa fa-star-o"></i> 收藏
        </button>
        <button class="btn btn-primary action-button">
          <i class="fa fa-paper-plane"></i> 发offer
        </button>
      </div>
    </div>
    
    <!-- 2. 单图片求职者 -->
    <div class="job-seeker-item">
      <div class="seeker-header">
        <img src="https://picsum.photos/200/200?random=2" class="seeker-avatar" alt="求职者头像">
        <div class="seeker-info">
          <div class="seeker-name">
            李娜 <i class="fa fa-check-circle verified-badge"></i>
          </div>
          <div class="seeker-title">UI/UX设计师</div>
          <div class="seeker-meta">
            <span class="meta-tag">28岁</span>
            <span class="meta-tag">硕士</span>
            <span class="meta-tag">3年经验</span>
            <span class="meta-tag">上海市</span>
          </div>
        </div>
      </div>
      
      <div class="seeker-content">
        <div class="seeker-description">
          毕业于知名设计学院，3年互联网产品设计经验，擅长用户体验设计和界面设计。熟练使用Figma、Sketch等设计工具，有电商和社交产品设计经验。希望加入重视用户体验的团队，共同打造优秀产品。
        </div>
        
        <div class="images-container">
          <div class="single-image">
            <img src="https://picsum.photos/800/400?random=10" alt="作品集示例">
          </div>
        </div>
        
        <div class="skills-container">
          <div class="skills-title">技能特长</div>
          <div class="skills-tags">
            <span class="skill-tag">UI设计</span>
            <span class="skill-tag">UX设计</span>
            <span class="skill-tag">Figma</span>
            <span class="skill-tag">Sketch</span>
            <span class="skill-tag">原型设计</span>
            <span class="skill-tag">用户研究</span>
          </div>
        </div>
        
        <div class="job-intention">
          <div class="intention-title">求职意向</div>
          <div class="intention-content">
            <div class="intention-item"><i class="fa fa-briefcase"></i> UI/UX设计师</div>
            <div class="intention-item"><i class="fa fa-money"></i> 15k-20k</div>
            <div class="intention-item"><i class="fa fa-map-marker"></i> 上海市</div>
            <div class="intention-item"><i class="fa fa-clock-o"></i> 2周内到岗</div>
          </div>
        </div>
      </div>
      
      <div class="seeker-actions">
        <button class="btn btn-outline-primary action-button">
          <i class="fa fa-comment-o"></i> 沟通
        </button>
        <button class="btn btn-outline-secondary action-button">
          <i class="fa fa-star-o"></i> 收藏
        </button>
        <button class="btn btn-primary action-button">
          <i class="fa fa-paper-plane"></i> 发offer
        </button>
      </div>
    </div>
    
    <!-- 3. 多图片求职者 -->
    <div class="job-seeker-item">
      <div class="seeker-header">
        <img src="https://picsum.photos/200/200?random=3" class="seeker-avatar" alt="求职者头像">
        <div class="seeker-info">
          <div class="seeker-name">
            王强
          </div>
          <div class="seeker-title">产品经理</div>
          <div class="seeker-meta">
            <span class="meta-tag">32岁</span>
            <span class="meta-tag">本科</span>
            <span class="meta-tag">7年经验</span>
            <span class="meta-tag">广州市</span>
          </div>
        </div>
      </div>
      
      <div class="seeker-content">
        <div class="seeker-description">
          7年互联网产品经理经验，曾任职于知名大厂，负责过用户量超千万的产品。擅长从0到1打造产品，有丰富的团队管理和跨部门协作经验。熟悉敏捷开发流程，注重数据驱动决策。期望加入有创新精神的团队。
        </div>
        
        <div class="images-container">
          <div class="multiple-images">
            <div class="multi-image-item">
              <img src="https://picsum.photos/300/300?random=20" alt="项目成果1">
            </div>
            <div class="multi-image-item">
              <img src="https://picsum.photos/300/300?random=21" alt="项目成果2">
            </div>
            <div class="multi-image-item">
              <img src="https://picsum.photos/300/300?random=22" alt="项目成果3">
              <div class="image-count">6</div>
            </div>
          </div>
        </div>
        
        <div class="skills-container">
          <div class="skills-title">技能特长</div>
          <div class="skills-tags">
            <span class="skill-tag">产品设计</span>
            <span class="skill-tag">需求分析</span>
            <span class="skill-tag">项目管理</span>
            <span class="skill-tag">数据分析</span>
            <span class="skill-tag">用户研究</span>
            <span class="skill-tag">团队管理</span>
          </div>
        </div>
        
        <div class="job-intention">
          <div class="intention-title">求职意向</div>
          <div class="intention-content">
            <div class="intention-item"><i class="fa fa-briefcase"></i> 高级产品经理</div>
            <div class="intention-item"><i class="fa fa-money"></i> 25k-35k</div>
            <div class="intention-item"><i class="fa fa-map-marker"></i> 广州市</div>
            <div class="intention-item"><i class="fa fa-clock-o"></i> 1个月内到岗</div>
          </div>
        </div>
      </div>
      
      <div class="seeker-actions">
        <button class="btn btn-outline-primary action-button">
          <i class="fa fa-comment-o"></i> 沟通
        </button>
        <button class="btn btn-outline-secondary action-button">
          <i class="fa fa-star-o"></i> 收藏
        </button>
        <button class="btn btn-primary action-button">
          <i class="fa fa-paper-plane"></i> 发offer
        </button>
      </div>
    </div>
    
    <!-- 4. 更多求职者示例 -->
    <div class="job-seeker-item">
      <div class="seeker-header">
        <img src="https://picsum.photos/200/200?random=4" class="seeker-avatar" alt="求职者头像">
        <div class="seeker-info">
          <div class="seeker-name">
            刘芳 <i class="fa fa-check-circle verified-badge"></i>
          </div>
          <div class="seeker-title">后端开发工程师</div>
          <div class="seeker-meta">
            <span class="meta-tag">29岁</span>
            <span class="meta-tag">本科</span>
            <span class="meta-tag">4年经验</span>
            <span class="meta-tag">深圳市</span>
          </div>
        </div>
      </div>
      
      <div class="seeker-content">
        <div class="seeker-description">
          计算机专业毕业，4年Java后端开发经验，熟悉Spring Boot、Spring Cloud等主流框架。参与过电商平台和支付系统的开发，有高并发系统设计经验。熟悉MySQL、Redis等数据库，了解分布式系统设计原则。
        </div>
        
        <div class="images-container no-images">
          <!-- 无图片 -->
        </div>
        
        <div class="skills-container">
          <div class="skills-title">技能特长</div>
          <div class="skills-tags">
            <span class="skill-tag">Java</span>
            <span class="skill-tag">Spring Boot</span>
            <span class="skill-tag">MySQL</span>
            <span class="skill-tag">Redis</span>
            <span class="skill-tag">微服务</span>
            <span class="skill-tag">分布式系统</span>
          </div>
        </div>
        
        <div class="job-intention">
          <div class="intention-title">求职意向</div>
          <div class="intention-content">
            <div class="intention-item"><i class="fa fa-briefcase"></i> 后端开发工程师</div>
            <div class="intention-item"><i class="fa fa-money"></i> 18k-25k</div>
            <div class="intention-item"><i class="fa fa-map-marker"></i> 深圳市</div>
            <div class="intention-item"><i class="fa fa-clock-o"></i> 随时到岗</div>
          </div>
        </div>
      </div>
      
      <div class="seeker-actions">
        <button class="btn btn-outline-primary action-button">
          <i class="fa fa-comment-o"></i> 沟通
        </button>
        <button class="btn btn-outline-secondary action-button">
          <i class="fa fa-star-o"></i> 收藏
        </button>
        <button class="btn btn-primary action-button">
          <i class="fa fa-paper-plane"></i> 发offer
        </button>
      </div>
    </div>
  </div>
  
  <!-- 底部导航 -->
  <div class="bottom-nav">
    <a href="#" class="nav-item">
      <i class="fa fa-home nav-icon"></i>
      <span>首页</span>
    </a>
    <a href="#" class="nav-item">
      <i class="fa fa-briefcase nav-icon"></i>
      <span>职位</span>
    </a>
    <a href="#" class="nav-item active">
      <i class="fa fa-users nav-icon"></i>
      <span>人才</span>
    </a>
    <a href="#" class="nav-item">
      <i class="fa fa-user-o nav-icon"></i>
      <span>我的</span>
    </a>
  </div>

  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 视图切换功能
    const cardViewBtn = document.getElementById('card-view-btn');
    const listViewBtn = document.getElementById('list-view-btn');
    const container = document.getElementById('job-seekers-container');
    
    cardViewBtn.addEventListener('click', function() {
      container.classList.remove('list-view');
      cardViewBtn.classList.add('active');
      listViewBtn.classList.remove('active');
    });
    
    listViewBtn.addEventListener('click', function() {
      container.classList.add('list-view');
      listViewBtn.classList.add('active');
      cardViewBtn.classList.remove('active');
    });
    
    // 收藏功能
    document.querySelectorAll('.action-button .fa-star-o').forEach(star => {
      star.addEventListener('click', function(e) {
        e.stopPropagation();
        const button = this.closest('.action-button');
        
        if (this.classList.contains('fa-star-o')) {
          this.classList.remove('fa-star-o');
          this.classList.add('fa-star', 'text-warning');
          button.innerHTML = '<i class="fa fa-star text-warning"></i> 已收藏';
        } else {
          this.classList.remove('fa-star', 'text-warning');
          this.classList.add('fa-star-o');
          button.innerHTML = '<i class="fa fa-star-o"></i> 收藏';
        }
      });
    });
    
    // 沟通按钮功能
    document.querySelectorAll('.action-button .fa-comment-o').forEach(comment => {
      comment.addEventListener('click', function(e) {
        e.stopPropagation();
        const name = this.closest('.job-seeker-item').querySelector('.seeker-name').textContent.trim();
        alert(`开始与 ${name} 沟通`);
      });
    });
    
    // 发offer按钮功能
    document.querySelectorAll('.action-button .fa-paper-plane').forEach(paper => {
      paper.addEventListener('click', function(e) {
        e.stopPropagation();
        const name = this.closest('.job-seeker-item').querySelector('.seeker-name').textContent.trim();
        alert(`向 ${name} 发送offer`);
      });
    });
    
    // 搜索功能
    const searchInput = document.querySelector('.search-input');
    searchInput.addEventListener('keyup', function(e) {
      const searchTerm = e.target.value.toLowerCase().trim();
      const items = document.querySelectorAll('.job-seeker-item');
      
      items.forEach(item => {
        const name = item.querySelector('.seeker-name').textContent.toLowerCase();
        const title = item.querySelector('.seeker-title').textContent.toLowerCase();
        const description = item.querySelector('.seeker-description').textContent.toLowerCase();
        const skills = item.querySelectorAll('.skill-tag');
        
        let hasMatch = name.includes(searchTerm) || title.includes(searchTerm) || description.includes(searchTerm);
        
        if (!hasMatch) {
          skills.forEach(skill => {
            if (skill.textContent.toLowerCase().includes(searchTerm)) {
              hasMatch = true;
            }
          });
        }
        
        item.style.display = hasMatch ? 'block' : 'none';
      });
    });
  </script>
</body>
</html>
